/**
 * description:router
 * */
import Vue from "vue";
import Router from "vue-router";
import MainPage from "../pages/Mainpage";
import Login from "../pages/login";
import Register from "../pages/register";
import Personal from "../pages/Personal";
import Extract from "../pages/Extract";
import TbRecord from "../pages/TbRecord";
import Invite from "../pages/Invite";
Vue.use(Router);

export default new Router({
    routes: [
        {
            path: "/",
            name: "MainPage",
            component: Personal
        },
        {
            path: "/login",
            name: "Login",
            component: Login
        },
        {
            path: "/register",
            name: "Register",
            component: Register
        },
        {
            path: "/personal",
            name: "Personal",
            component: Personal
        },
        // 提取
        {
            path: "/extract",
            name: "Extract",
            component: Extract
        },
        {
            path: "/tbRecord",
            name: "TbRecord",
            component: TbRecord
        },
        {
            path: "/invite",
            name: "Invite",
            component: Invite
        },
    ]
});
